package com.petAdoption.manager.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.petAdoption.manager.entity.Productswipe;
import com.petAdoption.manager.mapper.ProductswipeMapper;
import com.petAdoption.manager.service.IProductswipeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductswipeServiceImpl extends ServiceImpl<ProductswipeMapper, Productswipe> implements IProductswipeService {

    @Resource
    private ProductswipeMapper productswipeMapper;

    @Override
    public int addProductSwipe(List<Productswipe> productswipeList) {
        productswipeList.forEach(productswipe -> productswipeMapper.insert(productswipe));
        return 1;
    }
}
